Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bezier ratio on spiral pre_calc #897

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

jaredkhan
Copy link
Collaborator

Addresses #894

Ok, I know it's a silly one, but I think it is a bit more pleasing, and by the looks of it this parameter value just got lost when ladderized newick files were introduced. I tidied that up so the two branches use the same bezier parameters.

Before:
image

After:
image

node.children[0].bezsy = -(0.3)*(tempsinpre)/thisratio1;
node.children[0].bezex = tempcos2;
node.children[0].bezey = tempsin2;
node.children[0].bezc1x = -0.3*(tempcospre)/thisratio1;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice how this number...

node.children[1].bezsy = -(0.3)*(tempsinpre)/thisratio1;
node.children[1].bezex = tempcos2;
node.children[1].bezey = tempsin2;
node.children[1].bezc1x = -0.2*(tempcospre)/thisratio1;
Copy link
Collaborator Author

@jaredkhan jaredkhan Nov 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...wasn't the same as this number

@jaredkhan jaredkhan marked this pull request as ready for review November 13, 2024 22:46
@lentinj lentinj merged commit 0e2d0af into OneZoom:main Nov 13, 2024
1 check passed
@lentinj
Copy link
Collaborator

lentinj commented Nov 13, 2024

Nice, and thanks for doing the refactoring here!

@hyanwong
Copy link
Member

Good spot, thanks!

@jaredkhan jaredkhan deleted the smooth-spiral branch December 4, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants